package com.brillilab.domain.enums.space;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wuzhiyu
 * @Title: PanelSizeEnum
 * @ProjectName brill_lab
 * @Description: TODO
 * @date 2019/1/816:43
 */
@Getter
@AllArgsConstructor
public enum  PanelSizeEnum {
CM40(4,"40cm"),CM80(8,"80cm"),CM120(12,"120cm"),CM160(16,"160cm");
    private Integer  size;
    private String  text;
    private static Map<Integer,String> sizeMap;
    static {
        Map<Integer,String> map = new HashMap<>();
        for (PanelSizeEnum size :PanelSizeEnum.values()){
            map.put(size.getSize(), size.getText());
        }
        sizeMap = map;
    }
    public static Map<Integer,String> getMap(){
        return sizeMap;
    }
}
